<template>
  <a-card :bordered="false" title="">
    <this-table ref="table" @on-edit="openDialog" />
    <this-dialog ref="dialog" @refresh="refresh" />
  </a-card>
</template>

<script>
import thisTable from './table'
import thisDialog from './dialog.vue'
export default {
  components: { thisTable, thisDialog },
  methods: {
    openDialog(row) {
      this.$refs.dialog.open(row)
    },
    refresh() {
      this.$refs.table.$refs.table.onRefresh()
    },
  },
}
</script>

